package com.example.mydesignmodule.zhongjiezhe;

/**
 * @author tgw
 * @date 2021/3/9
 * @describe 中介者模式
 */
class ZhongJIeZheRunMain {

    public static void main(String[] args) {
        MainZhongJieZhe mainZhongJieZhe = new MainZhongJieZhe();
        ContactColleage contactColleage = new ContactColleage(mainZhongJieZhe);
        ScreenColleage screenColleage = new ScreenColleage(mainZhongJieZhe);
        AnJianColleage anJianColleage = new AnJianColleage(mainZhongJieZhe);

        mainZhongJieZhe.setAnJianColleage(anJianColleage);
        mainZhongJieZhe.setScreenColleage(screenColleage);
        mainZhongJieZhe.setContactColleage(contactColleage);

        screenColleage.load();
    }
}
